package com.jprocms.module.cms.controller.admin.content.vo;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ContentSubmitVO {
    /**
     * ID
     */
    @Schema(description = "内容ID", required = true, example = "1024")
    @NotNull
    private Long id;
    /**
     * 原因/意见
     */
    @Schema(description = "原因/意见")
    @Length(max = 255)
    private String reason = "";

    public ContentSubmitVO(Long id, String reason) {
        this.id = id;
        this.reason = reason;
    }

    @Schema(description = "发起人自选审批人 Map", example = "{taskKey1: [1, 2]}")
    private Map<String, List<Long>> startUserSelectAssignees;
}
